package p.ithorns.tools.log;

/**
 * 代理日志定义
 **/

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.event.Level;

/**
 * 代理日志类
 */
public class LogProxy {

    private static final Logger log = LoggerFactory.getLogger(LogProxy.class);

    private static final String FQCN = LogProxy.class.getName();

    /***
     *
     * @param level
     * @param msg
     */
    public void slf4jlog(Level level, String msg) {
        switch (level) {
            case INFO:
                log.info(msg);
                break;
            case WARN:
                log.warn(msg);
                break;
            case ERROR:
                log.error(msg);
                break;
            default:
                log.debug(msg);
        }
    }

}